//
//  CourseCommentPageModel.m
//  TeacherNet
//
//  Created by slz on 2017/11/22.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import "CourseCommentPageModel.h"

@implementation CourseUserCommentModel
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"commentDate" : @"appraiseTime",
             @"commentContent":@"appraise_content",
             @"avater":@"icon",
             @"rating":@"score",
             @"userName":@"username"
             };
}
@end

@implementation CourseCommentQuickCommentModel
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"commentCount" : @"count",
             @"quickCommentContent":@"title", //用户快捷评论
             @"commentId":@"id"
             };
}
@end

@implementation CourseCommentPageModel
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"commentCount" : @"total",
             @"commentAverage":@"average",
             @"userComments":@"appraise", //用户平均列表内容
             @"quickComment":@"reason", //用户快捷评论
             };
}
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"userComments" : [CourseUserCommentModel class],
             @"quickComment" : [CourseCommentQuickCommentModel class]
             };
}
@end
